import 'package:json_annotation/json_annotation.dart';

part 'home_banner_model.g.dart';

@JsonSerializable()
class HomeBannerModel {
  final int? type;
  // @JsonKey(name: 'countryCode')
  // final String? countryCode;
  // final int? localhost;
  // @JsonKey(name: 'jumpType')
  final int? jumpType;
  final String? link;
  // @JsonKey(name: 'descKey')
  // final String? descKey;
  final String? img;
  final int? status;
  final String? title;
  final String? id;
  // final String? key;
  // @JsonKey(name: 'createTime')
  // final DateTime? createTime; // 可能为 null

  HomeBannerModel({
    this.title,
    this.type,
    // this.countryCode,
    // this.localhost,
    this.jumpType,
    this.link,
    // this.descKey,
    this.img,
    this.status,
    this.id,
    // this.key,
    // this.createTime,
  });

  factory HomeBannerModel.fromJson(Map<String, dynamic> json) =>
      _$HomeBannerModelFromJson(json);

  Map<String, dynamic> toJson() => _$HomeBannerModelToJson(this);
}
